package <%= config.basePackage %>service;

import <%= config.basePackage %>common.Result;
import <%= config.basePackage %>entity.<%= table.className %>;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;
<% if(config.page === 'pageHelper') {%>
import com.github.pagehelper.PageInfo;
<%}%>
<% if(config.page === 'mybatisPage') {%>
    import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
    import com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO;
<%}%>
import javax.servlet.http.HttpServletResponse;

/**
* @author <%= config.author %>
* @date  <%= config.date %>
* @description <%= table.tableName %> <%= table.tableComment %>Service
* Generated By: uToolsPlugin SqlConvert
* Lesscoding Generate Service
* @version: 0.0.5
* Link to: <a href="https://lesscoding.net">https://lesscoding.net</a>
* mail to:2496290990@qq.com
*/
public interface <%= table.className %>Service extends IService<<%= table.className %>>{
    <% if(config.page === 'pageHelper') {%>
    /**
    * 根据条件分页查询表格结果
    * @return Result
    */
    public PageInfo<<%= table.className %>> getPageByLike(<%= table.className %> <%= table.firstLowerClassName %>);
    <%}%>
    <% if(config.page === 'mybatisPage') {%>
    /**
    * 根据条件分页查询表格结果
    * @return Result
    */
    public Page getPageByLike(<%= table.className %> <%= table.firstLowerClassName %>);
    <%}%>
    /**
    * 编辑
    * @return
    */
    public Integer edit<%= table.className %>(<%= table.className %> <%= table.firstLowerClassName %>);

    <% if(config.exportFlag) {%>
        /**
        * 下载导入模板
        * @param response
        */
        public void downloadTemplate(HttpServletResponse response);

        /**
        * 从excel批量导入数据
        * @return
        */
        public Integer import4Excel(MultipartFile file);

        public void export2Excel(<%= table.className %> <%= table.firstLowerClassName %>,HttpServletResponse response);
    <%}%>
}
